Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Slider): bug when options are changing #4577

Merged
merged 1 commit into from
Dec 12, 2024
Merged

Conversation

matthprost
Copy link
Collaborator

Summary

Type

  • Bug

Summarise concisely:

What is expected?

Slider options are not updating because we are using useRef in stead of useCallback on the onChange causing trouble for SliderField.

@matthprost matthprost added bug Something isn't working hotfix labels Dec 12, 2024
@matthprost matthprost self-assigned this Dec 12, 2024
@matthprost matthprost requested a review from lisalupi as a code owner December 12, 2024 11:44
Copy link

changeset-bot bot commented Dec 12, 2024

🦋 Changeset detected

Latest commit: 33d84ef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@ultraviolet/ui Patch
@ultraviolet/form Patch
@ultraviolet/plus Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

Attention: Patch coverage is 79.31034% with 6 lines in your changes missing coverage. Please review.

Project coverage is 87.58%. Comparing base (9d27e8b) to head (33d84ef).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
.../src/components/Slider/components/DoubleSlider.tsx 68.42% 6 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4577   +/-   ##
=======================================
  Coverage   87.58%   87.58%           
=======================================
  Files         335      335           
  Lines       12803    12804    +1     
  Branches     3531     3530    -1     
=======================================
+ Hits        11213    11215    +2     
+ Misses       1590     1589    -1     
Files with missing lines Coverage Δ
.../src/components/Slider/components/SingleSlider.tsx 94.62% <100.00%> (+0.05%) ⬆️
.../src/components/Slider/components/DoubleSlider.tsx 81.13% <68.42%> (+0.11%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 65d862c...33d84ef. Read the comment docs.

@matthprost matthprost merged commit 456d104 into main Dec 12, 2024
13 of 14 checks passed
@matthprost matthprost deleted the fix/slider-field branch December 12, 2024 14:37
@scaleway-bot scaleway-bot mentioned this pull request Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hotfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants